From: Adel Gadllah Date: Thu, 9 Feb 2012 18:57:29 +0000 (+0100) Subject: dbus: Add FlashArea method X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~7005 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=14b92a48977bbaf36a6790f59e33fe5f4b6914c4;p=gnome-shell.git dbus: Add FlashArea method Add a new dbus method that takes an area (x, y, width, height) and fires a flashspot on it. This would be useful for applications like totem and cheese. https://bugzilla.gnome.org/show_bug.cgi?id=669660 --- diff --git a/js/ui/shellDBus.js b/js/ui/shellDBus.js index 523338312..5fd65e12b 100644 --- a/js/ui/shellDBus.js +++ b/js/ui/shellDBus.js @@ -50,6 +50,12 @@ const GnomeShellIface = + + + + + + @@ -191,6 +197,11 @@ const GnomeShell = new Lang.Class({ flash, invocation)); }, + FlashArea: function(x, y, width, height) { + let flashspot = new Flashspot.Flashspot({ x : x, y : y, width: width, height: height}); + flashspot.fire(); + }, + ListExtensions: function() { let out = {}; for (let uuid in ExtensionUtils.extensions) {